package com.cakemallproject.service.impl;

import com.cakemallproject.mapper.TypeMapper;
import com.cakemallproject.pojo.mapperObj.Type;
import com.cakemallproject.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TypeServiceImpl implements TypeService {
    @Autowired
    private TypeMapper typeMapper;
    @Override
    public List<Type> list() {
        return typeMapper.list();
    }

    @Override
    public void insert(Type type) {
        typeMapper.insert(type);
    }

    @Override
    public void delete(List<Integer> ids) {
        typeMapper.delete(ids);
    }

    @Override
    public void update(Type type) {
        typeMapper.update(type);
    }

    @Override
    public Type getById(Integer tid) {
        return typeMapper.getById(tid);
    }


}
